/*
 * @Author: atony2099 
 * @Date: 2019-02-15 01:53:14 
 * @Last Modified by: atony2099
 * @Last Modified time: 2019-02-15 11:09:23
 */

import request from '../utils/request';


export function login(values) {
  return request('/app/v1/user/login', {
    method: 'POST',
    body: JSON.stringify(values),
  });
}

export function sign(values) {
  return request('/app/v1/sign', {
    method: 'POST',
    body: JSON.stringify(values),
  });
}


export function getUserInfo(values) {
  return request('/app/v1/user/me', {
    method: 'GET',
  });
}

export function resetUser() {
  return request('/app/v1/user/reset', {
    method: 'POST'
  });
}
